import { defHttp } from "@/utils/http";

// ERP 账户信息API
export const accountsApi = {
	// 获得账户信息分页
	accountsList: async (params: any) => {
		return await defHttp.get({ url: `/his/accounts/page`, params });
	},
	// 新增账户信息
	accountsCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/accounts/create`, data });
	},

	// 修改账户信息
	accountsUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/accounts/update`, data });
	},

	// 删除账户信息
	accountsDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/accounts/delete?id=` + id });
	}
};
